package cn.gjculture.shopping.api.dao;

import cn.gjculture.shopping.api.entity.ArtType;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ArtTypeDao {

    @Insert("insert into arttype(artTypeId,artTypeName) values(#{artTypeId},#{artTypeName})")
    Integer insert(ArtType artType);

    @Select("select * from arttype")
    List<ArtType> query();

    @Select("select * from arttype where artTypeId=#{artTypeId}")
    ArtType queryById(String artTypeId);
}
